<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>管理面板 - 智能驾驶辅助系统</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">
</head>
<body class="bg-gray-100 min-h-screen">
    <div class="container mx-auto px-4 py-8">
        <header class="mb-8">
            <div class="flex justify-between items-center">
                <h1 class="text-2xl font-bold">智能驾驶辅助系统</h1>
                <div>
                    <a href="/" class="mr-4">系统首页</a>
                    <a href="/profile" class="mr-4">个人信息</a>
                    <a href="/logout" class="text-red-600">退出登录</a>
                </div>
            </div>
        </header>

        <div class="bg-white rounded-lg shadow-lg p-8">
            <h2 class="text-xl font-semibold mb-6">管理面板</h2>

            <div class="mb-8">
                <h3 class="text-lg font-medium mb-4">系统状态</h3>
                <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
                    <div class="border rounded p-4">
                        <h4 class="font-medium mb-2">当前在线用户</h4>
                        <p id="online-users">加载中...</p>
                    </div>
                    <div class="border rounded p-4">
                        <h4 class="font-medium mb-2">系统运行状态</h4>
                        <p id="system-status">正常</p>
                    </div>
                </div>
            </div>

            <div>
                <h3 class="text-lg font-medium mb-4">用户管理</h3>
                <div class="overflow-x-auto">
                    <table class="min-w-full border">
                        <thead>
                            <tr class="bg-gray-100">
                                <th class="py-2 px-4 border">用户名</th>
                                <th class="py-2 px-4 border">邮箱</th>
                                <th class="py-2 px-4 border">角色</th>
                                <th class="py-2 px-4 border">注册时间</th>
                                <th class="py-2 px-4 border">最后登录</th>
                                <th class="py-2 px-4 border">操作</th>
                            </tr>
                        </thead>
                        <tbody id="user-table-body">
                            <!-- 管理员用户列表将通过JavaScript动态加载 -->
                            <tr>
                                <td colspan="6" class="py-4 px-4 text-center">加载用户数据中...</td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</body>
</html>